<template>
    <div class="saying">
        <h2>我是Saying组件</h2>
        <hr/>
        <ul>
            <li v-for="say in saying" :key="say.id">{{say.title}}</li>
        </ul>
    </div>
</template>

<script>
    export default {
        name: 'Saying',
        data() {
            return {
                saying:this.$store.state.Saying
            }
        },
    }
</script>

<style scoped>
    .saying{
        background-color: pink;
        padding: 10px;
    }
</style>